package com.org.manhu.chargehelper.broadcastreceiver;

import java.io.File;
import java.io.FileOutputStream;
import java.util.List;
import java.util.Map;

import com.org.manhu.chargehelper.adapter.AppListAdapter;
import com.org.manhu.chargehelper.service.ServerService;
import com.org.manhu.chargehelper.tools.JsonUtil;
import com.org.manhu.chargehelper.tools.StringUtils;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Environment;

/**
 * @文件名：RestartBroadcast.java
 * @包名：com.example.textlog
 * @作者：李朋辉 @QQ：892839211
 * @创建时间：2015年2月4日 下午7:34:12
 *
 * @描述：
 */
public class AcceptDataBroadcast extends BroadcastReceiver {

	private AppListAdapter adapter;

	public AcceptDataBroadcast(AppListAdapter adapter) {
		this.adapter = adapter;
	}

	@Override
	public void onReceive(Context context, Intent intent) {
		// TODO Auto-generated method stub
//		String json = intent.getStringExtra("data");
//		StringUtils.saveException2File("AcceptDataBroadcast", json);
//		List<Map<String, String>> data = JsonUtil.parseBoxData(json).get("应用");
//		adapter.setData(data);
//		adapter.notifyDataSetChanged();
	}

}
